package a.j;

import javax.swing.*;
import java.awt.*;

class he
  implements LayoutManager
{
  static final Object a = "LayoutManager.CENTER_KEY";
  static final Object b = "LayoutManager.LOCATION_KEY";
  static final Object c = "LayoutManager.DIMENSION_KEY";
  
  public void addLayoutComponent(String paramString, Component paramComponent) {}
  
  public void removeLayoutComponent(Component paramComponent) {}
  
  public Dimension preferredLayoutSize(Container paramContainer)
  {
    return new Dimension(1, 1);
  }
  
  public Dimension minimumLayoutSize(Container paramContainer)
  {
    return new Dimension(1, 1);
  }
  
  public void layoutContainer(Container paramContainer)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    label196:
    label329:
    synchronized (paramContainer.getTreeLock())
    {
      int i = 0;
      label201:
      do
      {
        if (i >= paramContainer.getComponentCount()) {
          break;
        }
        Component localComponent = paramContainer.getComponent(i);
        if (bool2) {
          return;
        }
        if (bool1) {
          break label329;
        }
        if (!bool2)
        {
          if ((localComponent instanceof JComponent))
          {
            JComponent localJComponent = (JComponent)localComponent;
            Object localObject1 = localJComponent.getClientProperty(b);
            if (bool2) {
              continue;
            }
            if ((localObject1 instanceof Point))
            {
              Point localPoint = (Point)localObject1;
              Object localObject2 = (Dimension)localJComponent.getClientProperty(c);
              Dimension localDimension = localComponent.getPreferredSize();
              if (!bool2) {
                if (localObject2 != null)
                {
                  localDimension.width = (((Dimension)localObject2).width = Math.max(localDimension.width, ((Dimension)localObject2).width));
                  localDimension.height = (((Dimension)localObject2).height = Math.max(localDimension.height, ((Dimension)localObject2).height));
                  if (bool2) {
                    break label201;
                  }
                  if (!bool1) {
                    break label196;
                  }
                }
              }
              localObject2 = localDimension;
              localJComponent.putClientProperty(c, localObject2);
              if (bool2) {
                continue;
              }
              if (localComponent.isVisible()) {
                if ((bool2) || (Boolean.TRUE.equals(localJComponent.getClientProperty(a))))
                {
                  int j = localPoint.x - localDimension.width / 2;
                  int k = localPoint.y - localDimension.height / 2;
                  localComponent.setBounds(j, k, localDimension.width, localDimension.height);
                  if (bool2) {
                    continue;
                  }
                  if (!bool1) {}
                }
                else
                {
                  localComponent.setBounds(localPoint.x, localPoint.y, localDimension.width, localDimension.height);
                }
              }
            }
          }
          i++;
        }
      } while (!bool1);
      if (bool2) {}
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.he

 * JD-Core Version:    0.7.0.1

 */